Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

264
Views
joi | how to turn off error message coloring and return it as plain text

I have a problem returning joi's error message as a response from my server, joi error message doesn't come back as plain text, it comes back as console characters with new lines and colors :

 {
    "error": "bad request",
    "message":"{\n  \"password\": \"mypass123\",\n  [41m\"username\"[0m[31m [1]: -- missing --[0m\n}\n[31m\n[1] \"username\" is required[0m"
 }

how can I get the message as plain text?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!